{extend name='index@template/base'}{/extend}
{block name='style'}
<style>
    #images
</style>
{/block}
{block name='script'}{/block}
{block name='content'}
<div class="wrapper" style="margin: 25px auto;width: 980px;text-align: center">
    <input id="multiple" name="upload" type="text"/>
    <!--<button type="button" class="btn btn-danger" onclick="get_id()">获取id</button>-->
    <button type="button" class="btn btn-danger multiple-upload">多图上传</button>
    <input id="simple" name="upload" type="text"/>
    <button type="button" class="btn btn-danger simple-upload">单图上传</button>
</div>
{/block}
{block name='script_extra'}
<script>
    $('.multiple-upload').on('click',function (e) {
        var ids=$("#multiple").val();
        layer_open('多图上传',"{:url('WebUploader/upload')}"+"/parent_ele/multiple"+"/id/"+ids,{w:"600px",h:"400px"})
    })
    $('.simple-upload').on('click',function (e) {
        var ids=$("#simple").val();
        layer_open('单图上传',"{:url('WebUploader/upload')}"+"/parent_ele/simple"+"/id/"+ids,{w:"600px",h:"400px"})
    })

    function get_id() {
        var id=$("#slide_image").val();
        alert(id);
    }

</script>
{/block}